package com.gustuy.mapper;

import com.gustuy.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    //查询全部用户
    List<User> getUserList();

    User getUserById(int id);

    int addUser(User user);

    int updateUser(User user);

    int addUser2(Map<String,Object> map);

    List<User> getLikeUser(String name);

    int deleteUser(int id);

    List<User> limitGetUserById(Map<String,Object> map);

    List<User> limitGetUserById2(@Param("begin") int begin,@Param("end") int end);

}
